﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfCAddriFrame.aspx.cs" Inherits="msBsc.WebUi.wfCAddriFrame" %>

<!DOCTYPE HTML>
<html>
<head id="Head1" runat="server"> 
    <title>收货地址管理</title>
    <link rel="shortcut icon" href="/themes/Style1/Image/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="/??themes/Style1/StyleQt.css,themes/Style1/address.css" />
    <script src="/??jqPlugin/js/jquery-1.8.3.min.js,js/jBase.js,js/jBPage.js,themes/Style1/jsQt.js"
        type="text/javascript"></script>
    <!--head fix rgn-->
    <script type="text/javascript">
        $(window).load(function () {

            $("#dplPROVINCE_ID").change(function () {
                var _jsParam = new jsonRow();
                _jsParam.AddCell("ACTION", "dplPROVINCE_ID_change");
                _jsParam.AddCell("PROVINCE_ID", $(this).val());
                ajaxComm(_jsParam);
            });
            $("#dplCITY_ID").change(function () {
                var _jsParam = new jsonRow();
                _jsParam.AddCell("ACTION", "dplCITY_ID_change");
                _jsParam.AddCell("CITY_ID", $(this).val());
                ajaxComm(_jsParam);
            });
            setAllValiInp(); 
        });
         
        function doSave() {
            if (getAllValiInp()) {
                var _jsParam = new jsonRow();
                var _jsPost = new jsonRow();
                GetFormJson("J_FormBox", _jsPost);
                _jsParam.AddCell("ACTION", "doSave");
                _jsPost.AddCell("ZONE_DESC", $("#dplPROVINCE_ID").find("option:selected").text() + " " + $("#dplCITY_ID").find("option:selected").text() + " " + $("#dplAREA_ID").find("option:selected").text());
                ajaxComm(_jsParam, _jsPost);
            }
        };
          
    </script> 
</head>
<body> 
                                <h2 class="h2-single">
                                    <span class="entity">收货地址</span></h2> 
                                <div class="form-box" id="J_FormBox">
                                    <div id="mapContainer">
                                    </div>
                                    <div class="item item-title">
                                        <span class="item-label" id="J_DeliverTitle">新增收货地址 </span>电话号码、手机号选填一项,其余均为必填项
                                    </div>
                                    <div class="item " id="J_ItemDivision">
                                        <span class="item-label">所在地区：<i>*</i></span>
                                        <table border="0" cellpadding="0" cellspacing="0"><tr><td>
                                        <select name="dplPROVINCE_ID" id="dplPROVINCE_ID" class="comSel" style="width: 100px;">
                                        </select></td><td>
                                        -</td><td>
                                        <select name="dplCITY_ID" id="dplCITY_ID" class="comSel" style="width: 100px;">
                                        </select></td><td>
                                        -</td><td>
                                        <select name="dplAREA_ID" id="dplAREA_ID" class="comSel vali-inp" style="width: 100px;">
                                        </select></td></tr></table>
                                    </div>
                                    <div class="item " id="J_ItemStreet">
                                        <span class="item-label">详细地址：<i>*</i></span>
                                        <div class="ks-combobox" id="J_ComboboxStreet">
                                            <div class="ks-combobox-input-wrap">
                                                      <textarea class="ks-combobox-input i-ta vali-inp" id="txtSTREET_ADDRESS"   reg-exp="^([\u4E00-\uFA29]|[\uE7C7-\uE7F3]|[a-zA-Z0-9#]){5,120}$" right-msg="允许5-120个字符，可用中文、数字、字母、#！"></textarea>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="item" id="J_ItemPostCode">
                                        <span class="item-label">邮政编码：<i>*</i></span>
                                           <input id="txtZIP_CODE" class="i-text vali-inp" type="text" value="" reg-exp="^[0-9]{6}$" right-msg="请填写6位数字" >
                                  </div>
                                    <div class="item item-name" id="J_ItemName">
                                        <span class="item-label">收货人姓名：<i>*</i></span>
                                                 <input class="i-text vali-inp" type="text" id="txtRECEIPT_NME" value=""  reg-exp="^([\u4E00-\uFA29]|[\uE7C7-\uE7F3]|[a-zA-Z]){2,15}$" right-msg="允许2-16个字符，可用中文、字母！"/>
                                    </div>
                                    <div class="item item-mobile" id="J_ItemMobile">
                                        <span class="item-label">手机号码：</span>
                                        <input class="i-text vali-inp" type="text" id="txtPHONE_NO" value=""  reg-exp="^\s*$|^1[0-9]{10}$" right-msg="请填写11位数字" />
                                    </div>
                                    <div class="item item-phone" id="J_ItemPhone">
                                        <span class="item-label">区号-座机-分机：</span>
                                        <table border="0" cellpadding="0" cellspacing="0"><tr><td>
                                        <input class="i-text i-text-short vali-inp" id="txtAREA_CODE" type="text" value=""  reg-targ="txtEXTENSION_NO" reg-exp="^\s*$|[0-9]{3,4}$" right-msg="请填写正确的区号"/></td><td>
                                        -</td><td>
                                        <input class="i-text i-text-short vali-inp" id="txtLANDLINE_NO" type="text" value=""   reg-targ="txtEXTENSION_NO" reg-exp="^\s*$|[0-9]{7,18}$" right-msg="请填写正确的座机号码"/></td><td>
                                        -</td><td>
                                        <input class="i-text i-text-short vali-inp" id="txtEXTENSION_NO" type="text" value=""   reg-targ="txtEXTENSION_NO" reg-exp="^\s*$|[0-9]{3,8}$" right-msg="请填写正确的分机号码"/></td></tr></table>
                                    </div>
                                    <div class="item item-set-default" id="j_ItemSetDefault">
                                        <input type="checkbox" class="i-chk" id="ckbIS_DEFAULT" />
                                        <label for="J_SetDefault">
                                            设置为默认收货地址</label>
                                    </div>
                                    <div class="item"> 
                                        <button type="button" class="btn" onclick="doSave();" style=" margin-left:10px;">
                                            保存</button>
                                    </div>
                                    <input id="txtRECE_ADDRESS_ID" type="text" value="" style="display: none;" />
                                </div> 
    <!-- foot script -->
</body>
</html>
